package cn.sx.entity;

/*
 *@program:sx_emall_ssm
 *@author: sx
 *@desc: 类目信息表
 *@Time: 2020/9/29  10:19
 */

public class Items {
    private int id	;//	Y	编号
    private int price	;//		购买时价格
    private int amount	;//		购买数量
    private int orderId	;//		订单id
    private int goodId	;//		商品id
    private float total;
    private Goods good;

    public Items() {
    }

    public Items(int id, int price, int amount, int orderId, int goodId, float total, Goods good) {
        this.id = id;
        this.price = price;
        this.amount = amount;
        this.orderId = orderId;
        this.goodId = goodId;
        this.total = total;
        this.good = good;
    }

    @Override
    public String toString() {
        return "Items{" +
                "id=" + id +
                ", price=" + price +
                ", amount=" + amount +
                ", orderId=" + orderId +
                ", goodId=" + goodId +
                ", total=" + total +
                ", good=" + good +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getGoodId() {
        return goodId;
    }

    public void setGoodId(int goodId) {
        this.goodId = goodId;
    }

    public float getTotal() {
        return total;
    }

    public void setTotal(float total) {
        this.total = total;
    }

    public Goods getGood() {
        return good;
    }

    public void setGood(Goods good) {
        this.good = good;
    }
}
